package com.daimler.itffo.tables;

public class V0BRB044Key implements Comparable<Object> {

	private String soLand;
	private String fzWhc;
	private String fzIdNr;

	public int compareTo(Object o) {
		V0BRB044Key pkey = (V0BRB044Key) o;
		int result = 0;

		result = pkey.getSoLand().compareTo(this.soLand);

		if (result == 0)
			result = pkey.getFzWhc().compareTo(this.fzWhc);

		if (result == 0)
			result = pkey.getFzIdNr().compareTo(this.fzIdNr);

		return result;
	}

	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		final V0BRB044Key other = (V0BRB044Key) obj;
		if (soLand == null) {
			if (other.soLand != null)
				return false;
		} else if (!soLand.equals(other.soLand))
			return false;
		if (fzWhc == null) {
			if (other.fzWhc != null)
				return false;
		} else if (!fzWhc.equals(other.fzWhc))
			return false;
		if (fzIdNr == null) {
			if (other.fzIdNr != null)
				return false;
		} else if (!fzIdNr.equals(other.fzIdNr))
			return false;
		return true;
	}

	public String getSoLand() {
		return soLand;
	}

	public String getFzWhc() {
		return fzWhc;
	}

	public String getFzIdNr() {
		return fzIdNr;
	}
}
